package com.zone.canvas;

import android.app.Application;
import android.content.Context;

import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;

public class CanvasApp extends Application {
    private static CanvasApp sCanvasApp;
    private static final String TAG = CanvasApp.class.getSimpleName();

    @Override
    public void onCreate() {
        super.onCreate();
        sCanvasApp = this;
        StringBuffer param = new StringBuffer();
        param.append("appid=8f7a32dd");
        param.append(",");
        // 设置使用v5+
        param.append(SpeechConstant.ENGINE_MODE + "=" + SpeechConstant.MODE_MSC);
        SpeechUtility.createUtility(CanvasApp.this, param.toString());
//        SpeechUtility.createUtility(CanvasApp.this, "appid=5a046888");
    }

    public static CanvasApp getPhotoApp() {
        return sCanvasApp;
    }

    public Context getContext() {
        return sCanvasApp.getContext();
    }
}
